package com.jiruan.invoicemanagementsystem.dao;

import com.jiruan.invoicemanagementsystem.pojo.Email;
import com.jiruan.invoicemanagementsystem.util.PageHelper;

import java.util.ArrayList;

public interface IEmailDao {
    //获取默认的邮箱信息
    Email selectDefaultEmail();

    //根据条件将对应邮箱信息设置为默认
    public int updateDefaultEmail(Email email);

    //根据id修改email的邮箱信息
    public int updateEmailById(Email email);


    //新添加一条邮箱信息
    int insertNewEmail(String emailDetail);

    public ArrayList<Email> selectAllEmail();

    public ArrayList<Email> selectPageAllEmail(PageHelper ph);

    //获得所有邮箱条数
    public int queryEmailCount();
}
